/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: PromotionActivity.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/3/15 下午3:15
 * LastModified: 2020/03/15 15:15:15
 */

package com.qolome.knowledge.design.pattern.strategy.demo.promotion;

/**
 * @author Qolome
 * @version V1.0
 * @Description 促销容器
 * @date 2020年 03月15日 15:15:47
 */
public class PromotionActivity {

    private IPromotionStrategy strategy;
    public PromotionActivity(IPromotionStrategy strategy){
        this.strategy = strategy;
    }

    public void execute(){
        strategy.doPromotion();
    }
}
